<?php
namespace app\admin\validate;
use think\Validate;
class Tages extends Validate{
	protected $rule=[
		'tagname'=>'require|max:25|unique',
	];

	protected $message=[
		'tagname.require'=>'标题必须填写',
		'tagname.max'=>'标题最大25个字符',
		'tagname.unique'=>'标题必须唯一',
	];

	protected $scene=[
		'add'=>['tagname'],
		'edit'=>['tagname'],
	];
}


?>